package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件业务对象 lc_attachment
 *
 * @author ruoyi
 * @date 2023-05-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LcAttachmentBo extends BaseEntity {

    /**
     * 文件id
     */
    @NotNull(message = "文件id不能为空", groups = { EditGroup.class })
    private Long fileId;

    /**
     * 文件类型
     */
    @NotBlank(message = "文件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;

    /**
     * 文件名
     */
    @NotBlank(message = "文件名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String originalName;

    /**
     * 现有文件名
     */
    @NotBlank(message = "现有文件名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String attName;

    /**
     * 文件存相对路径

     */
    @NotBlank(message = "文件存相对路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 文件相对路径
     */
    @NotBlank(message = "文件相对路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileExt;

    /**
     * 文件大小
     */
    @NotBlank(message = "文件大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileSize;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String about;

    /**
     * 上传状态 0 待上传 1 上次成功
     */
    @NotBlank(message = "上传状态 0 待上传 1 上次成功不能为空", groups = { AddGroup.class, EditGroup.class })
    private String uploadState;


}
